package com.example.lt;

import com.example.lt.authority.AuthorityUtils;
import com.example.lt.authority.BaseAuthority;
import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.annotation.EnableAspectJAutoProxy;
import org.springframework.scheduling.annotation.EnableAsync;
import org.springframework.scheduling.annotation.EnableScheduling;

@EnableAsync
@EnableScheduling
@EnableAspectJAutoProxy
@SpringBootApplication
@MapperScan(basePackages = "com.example.lt.mapper") // 自动扫描指定包下的所有 Mapper 接口，并将这些接口注册为 MyBatis 的 Mapper
public class LtJoyfulMomentsApplication {

    public static void main(String[] args) {
        // 设置全局权限校验开启状态，及其校验类
        AuthorityUtils.setGlobalVerify(true, new BaseAuthority());
        // 项目初始化
        SpringApplication.run(LtJoyfulMomentsApplication.class, args);
    }

}
